<?php

class sendSmsForm extends BaseForm{
    public function configure(){
        
        $this->setWidgets(array(
            'sms_body'          => new sfWidgetFormTextarea()
        ));
        
        $this->setValidators(array(
            'sms_body'          => new sfValidatorString(array('required'=>true))
        ));
        
        $this->widgetSchema->setLabels(array(
           'sms_body'        => 'SMS Message Text'
        ));
        
        $this->widgetSchema->setNameFormat('send_sms[%s]');        
        $this->setCustomFormatter();
    }
}